var Z = 60, J = Z * 60, V = J * 24, B = V * 7, A = 1e3, W = Z * A, R = J * A, K = V * A, X = B * A, x = "millisecond", g = "second", L = "minute", w = "hour", D = "day", N = "week", v = "month", P = "quarter", m = "year", C = "date", b = "YYYY-MM-DDTHH:mm:ssZ", z = "Invalid Date", q = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, tt = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;
const rt = {
  name: "en",
  weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
  months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_")
};
var k = function(t, e, r) {
  var n = String(t);
  return !n || n.length >= e ? t : "" + Array(e + 1 - n.length).join(r) + t;
}, et = function(t) {
  var e = -t.utcOffset(), r = Math.abs(e), n = Math.floor(r / 60), i = r % 60;
  return (e <= 0 ? "+" : "-") + k(n, 2, "0") + ":" + k(i, 2, "0");
}, nt = function s(t, e) {
  if (t.date() < e.date())
    return -s(e, t);
  var r = (e.year() - t.year()) * 12 + (e.month() - t.month()), n = t.clone().add(r, v), i = e - n < 0, a = t.clone().add(r + (i ? -1 : 1), v);
  return +(-(r + (e - n) / (i ? n - a : a - n)) || 0);
}, it = function(t) {
  return t < 0 ? Math.ceil(t) || 0 : Math.floor(t);
}, at = function(t) {
  var e = {
    M: v,
    y: m,
    w: N,
    d: D,
    D: C,
    h: w,
    m: L,
    s: g,
    ms: x,
    Q: P
  };
  return e[t] || String(t || "").toLowerCase().replace(/s$/, "");
}, st = function(t) {
  return t === void 0;
};
const ut = {
  s: k,
  z: et,
  m: nt,
  a: it,
  p: at,
  u: st
};
var H = "en", Y = {};
Y[H] = rt;
var j = function(t) {
  return t instanceof U;
}, F = function s(t, e, r) {
  var n;
  if (!t)
    return H;
  if (typeof t == "string") {
    var i = t.toLowerCase();
    Y[i] && (n = i), e && (Y[i] = e, n = i);
    var a = t.split("-");
    if (!n && a.length > 1)
      return s(a[0]);
  } else {
    var o = t.name;
    Y[o] = t, n = o;
  }
  return !r && n && (H = n), n || !r && H;
}, c = function(t, e) {
  if (j(t))
    return t.clone();
  var r = typeof e == "object" ? e : {};
  return r.date = t, r.args = arguments, new U(r);
}, ot = function(t, e) {
  return c(t, {
    locale: e.$L,
    utc: e.$u,
    x: e.$x,
    $offset: e.$offset
  });
}, u = ut;
u.l = F;
u.i = j;
u.w = ot;
var ft = function(t) {
  var e = t.date, r = t.utc;
  if (e === null)
    return new Date(NaN);
  if (u.u(e))
    return new Date();
  if (e instanceof Date)
    return new Date(e);
  if (typeof e == "string" && !/Z$/i.test(e)) {
    var n = e.match(q);
    if (n) {
      var i = n[2] - 1 || 0, a = (n[7] || "0").substring(0, 3);
      return r ? new Date(Date.UTC(n[1], i, n[3] || 1, n[4] || 0, n[5] || 0, n[6] || 0, a)) : new Date(n[1], i, n[3] || 1, n[4] || 0, n[5] || 0, n[6] || 0, a);
    }
  }
  return new Date(e);
}, U = /* @__PURE__ */ function() {
  function s(e) {
    this.$L = F(e.locale, null, !0), this.parse(e);
  }
  var t = s.prototype;
  return t.parse = function(r) {
    this.$d = ft(r), this.$x = r.x || {}, this.init();
  }, t.init = function() {
    var r = this.$d;
    this.$y = r.getFullYear(), this.$M = r.getMonth(), this.$D = r.getDate(), this.$W = r.getDay(), this.$H = r.getHours(), this.$m = r.getMinutes(), this.$s = r.getSeconds(), this.$ms = r.getMilliseconds();
  }, t.$utils = function() {
    return u;
  }, t.isValid = function() {
    return this.$d.toString() !== z;
  }, t.isSame = function(r, n) {
    var i = c(r);
    return this.startOf(n) <= i && i <= this.endOf(n);
  }, t.isAfter = function(r, n) {
    return c(r) < this.startOf(n);
  }, t.isBefore = function(r, n) {
    return this.endOf(n) < c(r);
  }, t.$g = function(r, n, i) {
    return u.u(r) ? this[n] : this.set(i, r);
  }, t.unix = function() {
    return Math.floor(this.valueOf() / 1e3);
  }, t.valueOf = function() {
    return this.$d.getTime();
  }, t.startOf = function(r, n) {
    var i = this, a = u.u(n) ? !0 : n, o = u.p(r), f = function(O, _) {
      var $ = u.w(i.$u ? Date.UTC(i.$y, _, O) : new Date(i.$y, _, O), i);
      return a ? $ : $.endOf(D);
    }, d = function(O, _) {
      var $ = [0, 0, 0, 0], p = [23, 59, 59, 999];
      return u.w(i.toDate()[O].apply(
        i.toDate("s"),
        (a ? $ : p).slice(_)
      ), i);
    }, h = this.$W, l = this.$M, M = this.$D, S = "set" + (this.$u ? "UTC" : "");
    switch (o) {
      case m:
        return a ? f(1, 0) : f(31, 11);
      case v:
        return a ? f(1, l) : f(0, l + 1);
      case N: {
        var y = this.$locale().weekStart || 0, E = (h < y ? h + 7 : h) - y;
        return f(a ? M - E : M + (6 - E), l);
      }
      case D:
      case C:
        return d(S + "Hours", 0);
      case w:
        return d(S + "Minutes", 1);
      case L:
        return d(S + "Seconds", 2);
      case g:
        return d(S + "Milliseconds", 3);
      default:
        return this.clone();
    }
  }, t.endOf = function(r) {
    return this.startOf(r, !1);
  }, t.$set = function(r, n) {
    var i, a = u.p(r), o = "set" + (this.$u ? "UTC" : ""), f = (i = {}, i[D] = o + "Date", i[C] = o + "Date", i[v] = o + "Month", i[m] = o + "FullYear", i[w] = o + "Hours", i[L] = o + "Minutes", i[g] = o + "Seconds", i[x] = o + "Milliseconds", i)[a], d = a === D ? this.$D + (n - this.$W) : n;
    if (a === v || a === m) {
      var h = this.clone().set(C, 1);
      h.$d[f](d), h.init(), this.$d = h.set(C, Math.min(this.$D, h.daysInMonth())).$d;
    } else
      f && this.$d[f](d);
    return this.init(), this;
  }, t.set = function(r, n) {
    return this.clone().$set(r, n);
  }, t.get = function(r) {
    return this[u.p(r)]();
  }, t.add = function(r, n) {
    var i = this, a;
    r = Number(r);
    var o = u.p(n), f = function(M) {
      var S = c(i);
      return u.w(S.date(S.date() + Math.round(M * r)), i);
    };
    if (o === v)
      return this.set(v, this.$M + r);
    if (o === m)
      return this.set(m, this.$y + r);
    if (o === D)
      return f(1);
    if (o === N)
      return f(7);
    var d = (a = {}, a[L] = W, a[w] = R, a[g] = A, a)[o] || 1, h = this.$d.getTime() + r * d;
    return u.w(h, this);
  }, t.subtract = function(r, n) {
    return this.add(r * -1, n);
  }, t.format = function(r) {
    var n = this, i = this.$locale();
    if (!this.isValid())
      return i.invalidDate || z;
    var a = r || b, o = u.z(this), f = this.$H, d = this.$m, h = this.$M, l = i.weekdays, M = i.months, S = i.meridiem, y = function($, p, T, Q) {
      return $ && ($[p] || $(n, a)) || T[p].slice(0, Q);
    }, E = function($) {
      return u.s(f % 12 || 12, $, "0");
    }, I = S || function(_, $, p) {
      var T = _ < 12 ? "AM" : "PM";
      return p ? T.toLowerCase() : T;
    }, O = {
      YY: String(this.$y).slice(-2),
      YYYY: this.$y,
      M: h + 1,
      MM: u.s(h + 1, 2, "0"),
      MMM: y(i.monthsShort, h, M, 3),
      MMMM: y(M, h),
      D: this.$D,
      DD: u.s(this.$D, 2, "0"),
      d: String(this.$W),
      dd: y(i.weekdaysMin, this.$W, l, 2),
      ddd: y(i.weekdaysShort, this.$W, l, 3),
      dddd: l[this.$W],
      H: String(f),
      HH: u.s(f, 2, "0"),
      h: E(1),
      hh: E(2),
      a: I(f, d, !0),
      A: I(f, d, !1),
      m: String(d),
      mm: u.s(d, 2, "0"),
      s: String(this.$s),
      ss: u.s(this.$s, 2, "0"),
      SSS: u.s(this.$ms, 3, "0"),
      Z: o
    };
    return a.replace(tt, function(_, $) {
      return $ || O[_] || o.replace(":", "");
    });
  }, t.utcOffset = function() {
    return -Math.round(this.$d.getTimezoneOffset() / 15) * 15;
  }, t.diff = function(r, n, i) {
    var a, o = u.p(n), f = c(r), d = (f.utcOffset() - this.utcOffset()) * W, h = this - f, l = u.m(this, f);
    return l = (a = {}, a[m] = l / 12, a[v] = l, a[P] = l / 3, a[N] = (h - d) / X, a[D] = (h - d) / K, a[w] = h / R, a[L] = h / W, a[g] = h / A, a)[o] || h, i ? l : u.a(l);
  }, t.daysInMonth = function() {
    return this.endOf(v).$D;
  }, t.$locale = function() {
    return Y[this.$L];
  }, t.locale = function(r, n) {
    if (!r)
      return this.$L;
    var i = this.clone(), a = F(r, n, !0);
    return a && (i.$L = a), i;
  }, t.clone = function() {
    return u.w(this.$d, this);
  }, t.toDate = function() {
    return new Date(this.valueOf());
  }, t.toJSON = function() {
    return this.isValid() ? this.toISOString() : null;
  }, t.toISOString = function() {
    return this.$d.toISOString();
  }, t.toString = function() {
    return this.$d.toUTCString();
  }, s;
}(), G = U.prototype;
c.prototype = G;
[["$ms", x], ["$s", g], ["$m", L], ["$H", w], ["$W", D], ["$M", v], ["$y", m], ["$D", C]].forEach(function(s) {
  G[s[1]] = function(t) {
    return this.$g(t, s[0], s[1]);
  };
});
c.extend = function(s, t) {
  return s.$i || (s(t, U, c), s.$i = !0), c;
};
c.locale = F;
c.isDayjs = j;
c.unix = function(s) {
  return c(s * 1e3);
};
c.en = Y[H];
c.Ls = Y;
c.p = {};
var ht = {
  name: "zh-cn",
  weekdays: "\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),
  weekdaysShort: "\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),
  weekdaysMin: "\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),
  months: "\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),
  monthsShort: "1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),
  ordinal: function(t, e) {
    switch (e) {
      case "W":
        return t + "\u5468";
      default:
        return t + "\u65E5";
    }
  },
  weekStart: 1,
  yearStart: 4,
  formats: {
    LT: "HH:mm",
    LTS: "HH:mm:ss",
    L: "YYYY/MM/DD",
    LL: "YYYY\u5E74M\u6708D\u65E5",
    LLL: "YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",
    LLLL: "YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",
    l: "YYYY/M/D",
    ll: "YYYY\u5E74M\u6708D\u65E5",
    lll: "YYYY\u5E74M\u6708D\u65E5 HH:mm",
    llll: "YYYY\u5E74M\u6708D\u65E5dddd HH:mm"
  },
  relativeTime: {
    future: "%s\u5185",
    past: "%s\u524D",
    s: "\u51E0\u79D2",
    m: "1 \u5206\u949F",
    mm: "%d \u5206\u949F",
    h: "1 \u5C0F\u65F6",
    hh: "%d \u5C0F\u65F6",
    d: "1 \u5929",
    dd: "%d \u5929",
    M: "1 \u4E2A\u6708",
    MM: "%d \u4E2A\u6708",
    y: "1 \u5E74",
    yy: "%d \u5E74"
  },
  meridiem: function(t, e) {
    var r = t * 100 + e;
    return r < 600 ? "\u51CC\u6668" : r < 900 ? "\u65E9\u4E0A" : r < 1100 ? "\u4E0A\u5348" : r < 1300 ? "\u4E2D\u5348" : r < 1800 ? "\u4E0B\u5348" : "\u665A\u4E0A";
  }
};
c.locale(ht, null, !0);
export {
  ht as default
};
